package scripts

def person = execution.getVariable("name");
def originDays = execution.getVariable("originDays");
def leaveDay = execution.getVariable("leaveday");
def leftAnnualDays = originDays - leaveDay;
execution.setVariable("leftAnnualDays",leftAnnualDays);
println "员工 ${person} 剩余年假天数: ${leftAnnualDays} (原始: ${originDays}, 请假: ${leaveDay})"
